import java.util.ArrayList;
import java.util.List;

public class Boss extends Employee {

	protected List<Employee> subordinates;
	
	public Boss(String name, int salary, int level) {
		super(name, salary, level);
		subordinates = new ArrayList <Employee>();
	}
	
	public void addEmployee(Employee sub) {
		subordinates.add(sub);
	}

	@Override
	public String toString() {
		String str = "";
		for (int i = 0; i < level; i++)
			str = str + "\t";
		return str + "[(boss) " + name + " - " + salary + "]";
	}
	
	@Override
	public void accept (Visitor v) {
		v.visit(this);
	}
	
	public List <Employee> getSubordinates() {
		return subordinates;
	}

}
